<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSysSetUpTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        if (!Schema::hasTable('sys_set_up')) {
            //关于我们及协议设置
            Schema::create('sys_set_up', function (Blueprint $table) {
                $table->increments('id');
                $table->string('title')->nullable()->comment('标题');
                $table->string('desc')->nullable()->comment('描述');
                $table->text('content')->nullable()->comment('内容');
                $table->integer('type')->default(0)->comment('类型 0：关于我们 1：服务协议 2：拼团规则');
                $table->integer('status')->default(0)->comment('状态 0::停用 1：启用');
                $table->softDeletes();
                $table->timestamps();
            });
        }

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
